Skip to content

cppDE 0.13.17 - #2

Merged
simonbeyer1 merged 1 commit into
masterfrom
release-0.13.17
Dec 2, 2026
Merged

simonbeyer1 merged 1 commit into
masterfrom
release-0.13.17

Conversation

@simonbeyer1

Copy link
Copy Markdown
Member

cppDE 0.13.17.

The BLAS thread count is process-global. A batch now sets it to one in the serial phase, before the OpenMP team starts, and restores the caller's count after the join. Before, every solve inside a batch called the setter from its own thread, which MKL documents as unsafe from parallel threads.

  • cppde_blas_threads.hpp: serial_blas_scope replaces single_thread_blas_scope, ensure_single_thread_blas() and the fork() guard. Inside a parallel region the scope does nothing.
  • solveBatch(), solveODEBatch() and the evaluateBatch entry of cppFUN() set the scope around the team. A single solve keeps the caller's count, except where the BLAS loads an OpenMP runtime other than libgomp.
  • blasThreads() reads and sets the count. forkGuard(), the fork() handler and the startup message are removed.
  • configure and configure.win fall back to /tmp with a valid mktemp template. Before, a TMPDIR that names a missing directory, as on some login nodes, made every probe fail, so SUNDIALS and KLU were not found.
  • The tests drop checks of shapes, messages and argument pass-through and keep the numerical ones.
  • ?solveODE and the methods articles write the derivatives of a reparameterization in Leibniz notation.

Models compiled with an earlier cppDE keep the previous behavior until they are compiled again. dMod2 0.18.1 (next pull request) compiles its kernels against these headers.

See NEWS.md.

…d restores it after the join, no thread of a batch calls the setter; a single solve keeps the count of the caller; blasThreads() replaces forkGuard(), no fork() handler and no startup message; configure finds SUNDIALS and KLU where TMPDIR names a missing directory; tests of shapes, messages and pass-through removed; derivatives of a reparameterization in Leibniz notation; cppDE 0.13.17

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonbeyer1

Copy link
Copy Markdown
Member Author

All checks pass. Merged into master by fast-forward, so the commit and its author stay as they are; tagged v0.13.17.

@simonbeyer1
simonbeyer1 merged commit 65c9813 into master Dec 2, 2026
7 checks passed
@simonbeyer1
simonbeyer1 deleted the release-0.13.17 branch December 2, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant